package Service.Impl;

import Dao.CollectionDao;
import Dao.Impl.CollectionDaoImpl;
import Domain.Collection;
import Service.CollectionService;

import java.util.List;

public class CollectionServiceImpl implements CollectionService {
    private CollectionDao dao = new CollectionDaoImpl();
    @Override
    public List<Collection> FindCollectionByUserid(int userid) {
        return dao.FindCollectionByUserid(userid);
    }

    @Override
    public void DelCollectionById(int id) {
        dao.DelCollectionById(id);
    }

    @Override
    public List<Collection> FindCollectionById(int id) {
        return dao.FindCollectionById(id);
    }

    @Override
    public void AddCollection(int cid, int pid) {
        dao.AddCollection(cid,pid);
    }


}
